I'm trying to use a snap function with Draggable. The snap property is not listed in the list of configuration properties in the documentation. I've found examples of using it but the function never gets called.
const draggables = Draggable.create(draggersArray, {
snap: {
points: function(point){
console.log(point);
return point;
}
}
});
I made sure to register the Draggable plugin, and I can start dragging items. But when I let them go, the snap function isn't called.